package com.xbongbong.paas.service;

import com.xbongbong.paas.pojo.dto.CommonFormListDTO;
import com.xbongbong.paas.pojo.dto.CommonFormSaveDTO;
import com.xbongbong.paas.pojo.vo.CommonFormListVO;
import com.xbongbong.paas.pojo.vo.CommonFormSaveVO;
import com.xbongbong.paas.toolbox.exception.XbbException;
import com.xbongbong.pro.menu.pojo.dto.CompanyCommonFormSaveDTO;
import com.xbongbong.pro.menu.pojo.vo.CompanyCommonFormSaveVO;

/**
 * @author: wufeng
 * @date: 2018/8/29 20:19
 * @desrcption: 常用表单/报表
 */
public interface CommonFormService {

    /**
     *  搜索常用表单/报表
     * @param commonFormListDTO
     * @return
     * @throws XbbException
     */
    CommonFormListVO commonFormList(CommonFormListDTO commonFormListDTO) throws XbbException;

    CommonFormListVO quickNewList(CommonFormListDTO commonFormListDTO) throws XbbException;

    /**
     * 设置常用表单、报表
     * @param commonFormSaveDTO
     * @return
     * @throws XbbException
     */
    CommonFormSaveVO save(CommonFormSaveDTO commonFormSaveDTO) throws XbbException;

    /**
     * 设置公司常用表单
     * @param commonFormSaveDTO
     * @return
     * @throws XbbException
     */
    CompanyCommonFormSaveVO companyCommonFormSave(CompanyCommonFormSaveDTO commonFormSaveDTO) throws XbbException;
}
